<?php

/*
 * Yanis Framework, Yet ANother Internet Service for web and mobile technologists
 * @copyright Copyright (C) 2011 ch@rlesen. All rights reserved.
 * @license GNU/GPL
 * @author Charles EDOU NZE
 * 
 * Front Controller
 */
define('DS', DIRECTORY_SEPARATOR);
define('YANIS_PATH', dirname(__FILE__) . DS);
define('YANIS_ROOT', substr($_SERVER['PHP_SELF'], 0, - (strlen($_SERVER['SCRIPT_FILENAME']) - strlen(YANIS_PATH))));
define('TEMPLATE_BASE', YANIS_PATH . DS . 'templates/xtrem/');

include_once YANIS_PATH . 'libraries/yanis/framework.php';
$yanis_framework = new Registry();
$yanis_framework->run();

echo YANIS_ROOT;
?>